#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int search(int* arr, int n, int x)
{
	int i = 0;
	for (i = 0; i < n; i++)
	{
		if (arr[i] == x)
		{
			return i;
		}
	}
	return -1;
}
int main()
{
	int arr[10] = { 0 };
	int x = 0;
	int i = 0;
	while (scanf("%d", &arr[i]) == 1)
	{
		i++;
		if (i ==10 )
		{
			scanf("%d", &x);
			int num=search(arr, i, x);
			if (num != -1)
			{
				printf("%d\n", num);
			}
			else
			{
				printf("Not found\n");
			}
			i = 0;
		}
	}


	return 0;
}